package cn.icebreak.cartoon.ui.fragment;

import android.os.Bundle;
import android.os.WorkSource;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import butterknife.ButterKnife;
import butterknife.OnClick;
import cn.icebreak.cartoon.R;
import cn.icebreak.cartoon.global.Route;

/**
 * 动态
 * Created by Codeant on 2018/7/9.
 */

public class DynamicFragment extends Fragment{
    private static final String TAG = "DynamicFragment";
    private View view;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.fragment_dynamic,container,false);
        initViews();

        ButterKnife.bind(this,view);
        return view;
    }

    void initViews(){

    }

    @OnClick({R.id.ly_dynamic_1, R.id.ly_dynamic_2, R.id.ly_dynamic_3, R.id.ly_dynamic_4})
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.ly_dynamic_1:
            case R.id.ly_dynamic_2:
            case R.id.ly_dynamic_3:
            case R.id.ly_dynamic_4:
                Log.d(TAG,"onClick: "+view.getId());
                Route.j2Detail(getActivity());
                break;
            default:
                break;
        }
    }
}
